acg1
Request
- ENDPOINT/baas/historic_card_settlement
- MÉTODOPOST
body.json
{
"person_type": "natural",
"name": "João Ninguem",
"document_number": "42866592832",
"signatures": [{
"signed_object": {
"raw_text": "Lorem ipsum dolor sit amet, consectetur a....",
"document_key": "79003de0-2590-455d-9b73-426b8ca284eb",
"document_md5": "7521bd5621d97af26b2c1721fc4023a8"
},
"authenticity": {
"timestamp": "1970-01-01 00:00:01",
"ip_address": "179.104.42.245",
"session_id": "ddb1d063-4fdf-4330-af9c-3316e9142ff3",
"facial_recognition_key": "79003de0-2590-455d-9b73-426b8ca284eb",
"document_key": "79003de0-2590-455d-9b73-426b8ca284eb",
"document_md5": "79003de0-2590-455d-9b73-426b8ca284eb"
},
"signer": {
"name": "IVANILDO DE SENA LIMA",
"email": "ivanlima2604@gmail.com",
"phone": {
"country_code": "055",
"area_code": "11",
"number": "999999999"
},
"document_number": "61766976204"
},
"authentication_type": "opt-in"
}]
}
Body Params
| 字段 | 类型 | 描述 |
|---|---|---|
person_type | enum | 被查询人员的类型。 |
name | string | 被查询方的姓名。 |
document_number | string | 被查询方的 CPF 或 CNPJ。 |
signatures | array of objects | 包含签署方对象的列表。 |
枚举值
marital_status 枚举值
| 枚举值 | 翻译 |
|---|---|
| natural | 自然人 |
| legal | 法人 |
Response
状态:
201
Response Body: 自然人(PF)
{
"person_type": "natural",
"name": "Sample Natural Person",
"document_number": "50727483161",
"signers": [
{
"name": "Sample Natural Person",
"document_number": "50727483161",
"email": "sample@gmail.com",
"phone_number": "34987654321",
"signature": {
"authenticity": {
"ip_address": "127.0.0.1",
"session_id": "120a0a3ae723ff2858f9e0360f123723",
"third_party_access_token": "558f1a0b-38de-4b8d-b678-14b052adb1db",
"third_party_additional_data": {}
},
"signable_object": {
"document_key": "a43c1dde-0ecd-4086-8b94-714277a2dcee",
"document_md5": "57c0906e3c9902403ba373d9a7650f0a"
}
}
}
],
"historic_card_settlement_key": "74bf0f2e-8c53-4b5b-90bf-a0d21022bcff",
"status": "signed",
"historic_card_settlement_date": "2022-05-18T19:38:44"
}
状态:
201
Response Body: 法人(PJ)
{
"person_type": "legal",
"name": "Sample Legal Person",
"document_number": "28001500",
"signers": [
{
"name": "Sample Signer",
"document_number": "50727483161",
"email": "sample@gmail.com",
"phone_number": "34987654321",
"signature": {
"authenticity": {
"ip_address": "127.0.0.1",
"session_id": "120a0a3ae723ff2858f9e0360f123723",
"third_party_access_token": "candidate - 37767",
"third_party_additional_data": {}
},
"signable_object": {
"document_key": "a43c1dde-0ecd-4086-8b94-714277a2dcee",
"document_md5": "57c0906e3c9902403ba373d9a7650f0a"
}
}
}
],
"historic_card_settlement_key": "c2d4bfd3-6eaf-40ee-9eb1-697992336dbb",
"status": "signed",
"historic_card_settlement_date": "2022-05-18T19:37:38"
}
状态:
400
body.json
{
"data": "{\"title\": \"Bad Request\", \"description\": \"Invalid request body.\", \"translation\": \"Corpo da requisição inválido.\", \"extra_fields\": {}, \"code\": \"LEG000069\"}"
}
Webhooks
提交查询申请后,其余流程由 QI Tech 负责。届时将发送一个 Webhook,呈现两种不同的模型:
-
如果查询成功找到,将收到 "status" 字段值为 "completed" 的 Webhook,此时 "data" 对象将包含查询的其余信息。
-
如果在被查询期间未在数据库中找到相关文件,将收到 "status" 字段值为 "not_found" 的 Webhook,表示查询未返回任何信息。
成功示例
Webhook 中的 "data" 对象包含以下字段:
"valueless_months":无活动的月份数量。
"card_schemes":构成已清算总额的支付安排。
"value":卡片清算的总金额。
{
"status": "completed",
"webhook_type": "historic_card_settlement",
"data": {
"valueless_months": 0,
"card_schemes": [
{
"code": "003",
"enumerator": "credit_mastercard",
"description": "Mastercard Crédito"
}
],
"value": 847.86
},
"event_datetime": "2022-05-18T20:57:00",
"key": "38934f1b-204f-4fc4-844d-5ad562ff36f6"
}
查询未找到的情况
{
"status": "not_found",
"webhook_type": "historic_card_settlement",
"event_datetime": "2022-05-18T20:57:00",
"key": "38934f1b-204f-4fc4-844d-5ad562ff36f6"
}